package com.tms.utils;


/**
 * json数据封装类
 *
 * @author ozj
 */
public class JsonResult {


    /**
     * 请求结果
     */
    private String status;

    /**
     * 描叙
     */
    private String description;

    /**
     * 返回请求的信息
     */
    private Data data;

    /**
     * 无属性的json封装
     */
    public JsonResult() {
        super();
    }

    public JsonResult(String status) {
        super();
        this.status = status;
    }

    public JsonResult(String status, String description) {
        super();
        this.status = status;
        this.description = description;
    }

    public JsonResult(String status, Data data) {
        super();
        this.status = status;
        this.data = data;
    }

    public JsonResult(String status, String description, Data data) {
        super();
        this.status = status;
        this.description = description;
        this.data = data;
    }


    /**
     * 取得请求结果
     *
     * @return the flag
     */
    public String getStatus() {
        return status;
    }


    /**
     * 取得处理的数据
     *
     * @return the data
     */
    public Data getData() {
        return data;
    }

    /**
     * 设置请求结果
     *
     * @param status the flag to set
     */
    public void setStatus(String status) {
        this.status = status;
    }


    /**
     * 设置处理数据
     *
     * @param data the data to set
     */
    public void setData(Data data) {
        this.data = data;
    }

    /**
     * 取得描叙
     *
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置描叙
     *
     * @param description 返回信息描叙
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
